import { http } from '@/services/http';
import type { ResponseData } from '@/types';

export function getAddressList() {
  return http.get<ResponseData>('/user/address/list');
}

export function saveAddress(data: any) {
  return http.post<ResponseData>('/user/address', data);
}

export function deleteAddress(id: string) {
  return http.delete<ResponseData>('/user/address/del', { id: id });
}
